package com.stxx.framwork.utils;

import com.stxx.framwork.constants.FluxDataType;

public class FluxUtils {
    public static Class<?> getType(FluxDataType type){
        Class<?> fieldType=String.class;
        switch (type){
            case DOUBLE:fieldType = Double.class; break;
            case BOOLEAN: fieldType = Boolean.class; break;
            case INTEGER:fieldType = Integer.class; break;
            case SHORT: fieldType = Short.class; break;
            case FLOAT:fieldType = Float.class; break;
            case LONG: fieldType = Long.class; break;
            case BYTE: fieldType = Byte.class; break;
        }
        return fieldType;
    }
}
